;;; init-erlang.el --- erlang config
;;; Commentary:
;;; Code:

;; erlang
(use-package erlang
  :defer t
  :init (require 'erlang-start))

;; binding key
(leader-key erlang-mode-map
  "m" '(:ignore t :wk "lang")
  "mx" '(quickrun :wk "run")
  "mv" '(erlang-version :wk "version"))

;; elixir-mode
(use-package elixir-mode
  :defer t)

;; binding key
(leader-key elixir-mode-map
  "m" '(:ignore t :wk "lang")
  "mx" '(quickrun :wk "run"))

;; alchemist
(use-package alchemist
  :defer t
  :hook ((elixir-mode . alchemist-mode)
         (elixir-mode . alchemist-phoenix-mode)))

;; flycheck-credo
(use-package flycheck-credo
  :defer t
  :after flycheck
  :init (flycheck-credo-setup))

(provide 'init-erlang)
;;; init-erlang.el ends here
